* {
  margin: 0;
  padding: 0;
}

.title {
  font-size: 40px;
  font-family: "Pacifico", cursive;
  color: black;
  text-align: center;
}

.center {
  text-align: center;
  color: black;
}

a {
  color: #34495e;
}

/*WRAPPER*/
#wrapper {
  width: 520px;
  height: 520px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

#wrapper:after {
  content: "";
  background-image: url(../images/game/bg_after.png);
  background-size: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
  width: 491px;
  height: 489px;
  position: absolute;
  top: 13px;
  left: 16px;
  z-index: 999;
  opacity: 0;
  -webkit-animation: bg_higary_after 0.3s linear infinite;
  animation: bg_higary_after 0.3s linear infinite;
}

@-webkit-keyframes bg_higary_after {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes bg_higary_after {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#wrapper:before {
  content: "";
  background-image: url(../images/game/bg_before.png);
  background-size: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
  width: 491px;
  height: 489px;
  position: absolute;
  top: 13px;
  left: 16px;
  z-index: 999;
  opacity: 0;
  -webkit-animation: bg_higary_before 0.3s linear infinite;
  animation: bg_higary_before 0.3s linear infinite;
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}

@-webkit-keyframes bg_higary_before {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes bg_higary_before {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.arrow {
  position: absolute;
  top: -9px;
  left: 0;
  right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 999;
}

#txt {
  color: #eaeaea;
}

/*WHEEL*/
#wheel {
  width: 464px;
  height: 464px;
  border-radius: 50%;
  position: relative;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

#wheel:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 464px;
  height: 464px;
  border-radius: 50%;
  background-color: #dab97b;
}

#wheel:after {
  content: "";
  display: block;
  position: absolute;
  top: -26px;
  left: -28px;
  width: 520px;
  height: 520px;
  background-image: url(../images/game/game_bg_1_after.png);
  z-index: -1;
}

#wheel .wheel {
  position: absolute;
  top: -2px;
  left: 0;
  /* -webkit-transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99);
  transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99); */
  overflow: hidden;
  width: 464px;
  height: 464px;
  border-radius: 50%;
  border: 5px solid #fff6de;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#wheel .wheel .sec {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 232px 61px 0px;
  -webkit-transform-origin: 61px 232px;
  transform-origin: 61px 232px;
  left: 166px;
  top: -4px;
  opacity: 1;
}

#wheel .wheel .sec .fa {
  margin-top: -215px;
  color: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10000000;
  display: block;
  text-align: center;
  font-size: 24px;
  margin-left: -32px;
  width: 64px;
  height: 64px;
  text-shadow: rgba(255, 255, 255, 0.1) 0px -1px 0px,
    rgba(0, 0, 0, 0.2) 0px 1px 0px;
}

#wheel .wheel .sec .fa.fa_active {
  -webkit-animation: bounce 0.3s ease-out infinite;
  animation: bounce 0.3s ease-out infinite;
  -webkit-transform: scale(1);
  transform: scale(1);
}

@-webkit-keyframes bounce {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}

@keyframes bounce {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}

#wheel .wheel .sec.on {
  border-color: #a16e24 transparent !important;
}

#wheel .wheel .sec.on .icons:after {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  background-image: url(../images/game/icon_hegary_after.png);
  background-position: center;
  display: block;
  width: 121px;
  height: 121px;
  z-index: -1;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-animation: higary_after 5s linear infinite;
  animation: higary_after 5s linear infinite;
}

@-webkit-keyframes higary_after {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes higary_after {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#wheel .wheel .sec.on .icons:before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  background-image: url(../images/game/icon_hegary_before.png);
  background-position: center;
  display: block;
  width: 121px;
  height: 121px;
  z-index: -1;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-animation: higary_before 6s linear infinite;
  animation: higary_before 6s linear infinite;
}

@-webkit-keyframes higary_before {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

@keyframes higary_before {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

#wheel .wheel .sec:nth-child(1) {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

#wheel .wheel .sec:nth-child(2) {
  -webkit-transform: rotate(-30deg);
  transform: rotate(-30deg);
}

#wheel .wheel .sec:nth-child(3) {
  -webkit-transform: rotate(-60deg);
  transform: rotate(-60deg);
}

#wheel .wheel .sec:nth-child(4) {
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

#wheel .wheel .sec:nth-child(5) {
  -webkit-transform: rotate(-120deg);
  transform: rotate(-120deg);
}

#wheel .wheel .sec:nth-child(6) {
  -webkit-transform: rotate(-150deg);
  transform: rotate(-150deg);
}

#wheel .wheel .sec:nth-child(7) {
  -webkit-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

#wheel .wheel .sec:nth-child(8) {
  -webkit-transform: rotate(-210deg);
  transform: rotate(-210deg);
}

#wheel .wheel .sec:nth-child(9) {
  -webkit-transform: rotate(-240deg);
  transform: rotate(-240deg);
}

#wheel .wheel .sec:nth-child(10) {
  -webkit-transform: rotate(-270deg);
  transform: rotate(-270deg);
}

#wheel .wheel .sec:nth-child(11) {
  -webkit-transform: rotate(-300deg);
  transform: rotate(-300deg);
}

#wheel .wheel .sec:nth-child(12) {
  -webkit-transform: rotate(-330deg);
  transform: rotate(-330deg);
}

#wheel .wheel .sec:nth-child(odd) {
  border-color: #fce6bc transparent;
}

#wheel .wheel .sec:nth-child(even) {
  border-color: #fff6e7 transparent;
}

#wheel .wheel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 50%;
  -webkit-box-shadow: inset 0px 0px 6px 5px #d8b26b;
  box-shadow: inset 0px 0px 6px 5px #d8b26b;
  display: block;
  width: 455px;
  height: 455px;
}

#wheel .wheel:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: red;
}

#wheel .wheel_two {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  width: 274px;
  height: 274px;
  margin-top: -137px;
  margin-left: -137px;
  border-radius: 50%;
  border: 5px solid #fff6d0;
  -webkit-box-shadow: 0 0 5px 2px #e6cca8;
  box-shadow: 0 0 5px 2px #e6cca8;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #29b981;
}

#wheel .wheel_two .sec {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 136px 55px 0px;
  -webkit-transform-origin: 55px 136px;
  transform-origin: 55px 136px;
  left: 79px;
  top: -4px;
  opacity: 1;
}

#wheel .wheel_two .sec .fa {
  margin-top: -125px;
  color: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10000000;
  display: block;
  text-align: center;
  font-size: 24px;
  margin-left: -32px;
  width: 64px;
  height: 64px;
  text-shadow: rgba(255, 255, 255, 0.1) 0px -1px 0px,
    rgba(0, 0, 0, 0.2) 0px 1px 0px;
}

#wheel .wheel_two .sec .fa.fa_active {
  -webkit-animation: bounce 0.3s ease-out infinite;
  animation: bounce 0.3s ease-out infinite;
  -webkit-transform: scale(1);
  transform: scale(1);
}

@keyframes bounce {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}

#wheel .wheel_two .sec.on {
  border-color: #17895a transparent !important;
}

#wheel .wheel_two .sec.on .icons:after {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  background-image: url(../images/game/icon_hegary_after.png);
  background-position: center;
  display: block;
  width: 121px;
  height: 121px;
  z-index: -1;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-animation: higary_after 5s linear infinite;
  animation: higary_after 5s linear infinite;
}

@keyframes higary_after {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#wheel .wheel_two .sec.on .icons:before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  background-image: url(../images/game/icon_hegary_before.png);
  background-position: center;
  display: block;
  width: 121px;
  height: 121px;
  z-index: -1;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-animation: higary_before 6s linear infinite;
  animation: higary_before 6s linear infinite;
}

@keyframes higary_before {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

#wheel .wheel_two .sec:nth-child(1) {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

#wheel .wheel_two .sec:nth-child(2) {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#wheel .wheel_two .sec:nth-child(3) {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

#wheel .wheel_two .sec:nth-child(4) {
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}

#wheel .wheel_two .sec:nth-child(5) {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

#wheel .wheel_two .sec:nth-child(6) {
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
}

#wheel .wheel_two .sec:nth-child(7) {
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}

#wheel .wheel_two .sec:nth-child(8) {
  -webkit-transform: rotate(315deg);
  transform: rotate(315deg);
}

#wheel .wheel_two .sec:nth-child(odd) {
  border-color: #54d393 transparent;
}

#wheel .wheel_two .sec:nth-child(even) {
  border-color: #35c98f transparent;
}

#wheel .wheel_two:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 50%;
  -webkit-box-shadow: inset 0px 0px 6px 5px #1ea273;
  box-shadow: inset 0px 0px 6px 5px #1ea273;
  display: block;
  width: 264px;
  height: 264px;
}

#wheel .wheel_two:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: red;
}

#wheel .count {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 145px;
  background-image: url(../images/game/count.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#wheel .count_time {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  margin-top: 15px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

#wheel .count_round {
  font-size: 16px;
  color: #fff;
}

#spin {
  width: 68px;
  height: 68px;
  position: fixed;
  top: 20%;
  right: 50px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 0px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 0px;
  z-index: 1000;
  background: #fff;
  cursor: pointer;
  font-family: "Exo 2", sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#spin #inner-spin {
  width: 54px;
  height: 54px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: red;
  z-index: 999;
  -webkit-box-shadow: white 0px -2px 0px inset, white 0px 2px 0px inset,
    rgba(0, 0, 0, 0.4) 0px 0px 5px;
  box-shadow: white 0px -2px 0px inset, white 0px 2px 0px inset,
    rgba(0, 0, 0, 0.4) 0px 0px 5px;
  background: white;
  background: radial-gradient(ellipse at center, white 0%, #eaeaea 100%);
  -webkit-filter: blur(1px);
  filter: blur(1px);
}

#spin:after {
  content: "SPIN";
  text-align: center;
  line-height: 68px;
  color: #ccc;
  text-shadow: 0 2px 0 #fff, 0 -2px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100000;
  width: 68px;
  height: 68px;
  display: block;
}

#spin:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 28px 20px;
  border-color: transparent transparent #ffffff transparent;
  top: -12px;
  left: 14px;
}

.icons {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.icons_purple {
  background-image: url(../images/game/icon_purple.png);
}

.icons_purple.active {
  background-image: url(../images/game/gem2.gif);
  background-size: 92px 92px;
  position: relative;
}

.icons_blue {
  background-image: url(../images/game/icon_blue.png);
}

.icons_blue.active {
  background-image: url(../images/game/gem3.gif);
  background-size: 92px 92px;
}

.icons_green {
  background-image: url(../images/game/icon_green.png);
}

.icons_green.active {
  background-image: url(../images/game/gem1.gif);
  background-size: 92px 92px;
}

.icons_red {
  background-image: url(../images/game/icon_red.png);
}

.icons_red.active {
  background-image: url(../images/game/gem5.gif);
  background-size: 92px 92px;
}

.icons_orange {
  background-image: url(../images/game/icon_orange.png);
}

.icons_orange.active {
  background-image: url(../images/game/gem4.gif);
  background-size: 92px 92px;
}
